package com.taokatao.cardmee.api.model;

import com.taokatao.cardmee.api.RespInfo;

import java.io.Serializable;
import java.util.List;


public class CardFDInfo extends RespInfo {

    public List<Order> orderList;
    public List<OrderFinance> orderFinanceList;

    /**
     * 余额(最多两位小数)
     */
    public float balance;
    /**
     * 积分
     */
    public int integral;

    public static class Order implements Serializable {
        public long id;
        public int consumeNum;
        public int productNum;
        public long productId;
        public String productName;
    }

    public static class OrderFinance implements Serializable {


        /**
         * 记录id
         */
        public long id;
        /**
         * 1消费商品次数；
         * 2充值商品次数；
         * 3充值余额；
         * 4消费余额；
         * 5余额退款；
         * 6商品退款；
         * 7购买
         */
        public int status;
        public static final int STATUS_CONSUME_GOODS_COUNT = 1;
        public static final int STATUS_RECHARGE_GOODS_COUNT = 2;
        public static final int STATUS_RECHARGE_BALANCE = 3;
        public static final int STATUS_CONSUME_BALANCE = 4;
        public static final int STATUS_BALANCE_REFUND = 5;
        public static final int STATUS_GOODS_REFUND = 6;
        public static final int STATUS_BUY = 7;

        /**
         * 记录时间(14位定长)
         */
        public long createTime;
        /**
         * 充值或者消费的次数
         */
        public int changeNum;
        /**
         * 充值或者消费的金额
         */
        public float changeMoney;

        /**
         * 余额消费金额
         */
        public float useBalanceMoney;

        /**
         * 商品退款金额
         */
        public float actualMoney;

        /**
         * 商品套餐购买价
         */
        public float buyPrice;

        /**
         * 商品名称
         */
        public String productName;

    }

}
